﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// Summary description for Configuration
/// </summary>
namespace webapp4U
{
    public static class Configuration
    {
        public static string GetAppConfiguration(string key)
        {
            return ConfigurationManager.AppSettings.Get(key);
        }
        
        public static string GetConnectionString(string key)
        {
            return ConfigurationManager.ConnectionStrings[key].ToString();
        }

        public static string CurrentConnectionString
        {

            get { return GetConnectionString("DRMConnection"); }
        }       
    }
}
